package edu.jvn.ict.locationsharing.informationexchange;

import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.io.Serializable;

public abstract class ExchangeMessage implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = 7887080665619402522L;
	private boolean rebroadcast = true;
	private boolean alongColumn = true;
	private boolean alongRow = true;

	public boolean isRebroadcast() {
		return rebroadcast;
	}

	public void setRebroadcast(boolean rebroadcast) {
		this.rebroadcast = rebroadcast;
	}

	public boolean isAlongColumn() {
		return alongColumn;
	}

	public void setAlongColumn(boolean alongColumn) {
		this.alongColumn = alongColumn;
	}

	public boolean isAlongRow() {
		return alongRow;
	}

	public void setAlongRow(boolean alongRow) {
		this.alongRow = alongRow;
	}

	public abstract void process(ObjectInputStream in, ObjectOutputStream out) throws IOException;
}
